package com.yunhe.sms.service.activity;

import com.yunhe.commons.dto.Pageable;
import com.yunhe.sms.entity.activity.VoteItem;
import com.yunhe.sms.entity.activity.VoteLog;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * Created by Administrator on 2017/10/30 0030.
 */
public interface VoteItemService {

    void save(VoteItem voteItem);

    void delete(Long id);

    void deleteBatch(String ids);

    void update(VoteItem voteItem);

    void updateVotes(Long id);


    VoteItem find(Long id);

    List<VoteItem> findList(Long voteId);

    Pageable<VoteItem> findPage(Integer offset, Integer limit, Long voteId);

    Boolean toupiao(Long id, HttpServletRequest request);

    VoteLog mac(Long id, HttpServletRequest req);
}
